// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VueRouter from './router'
const router = VueRouter()
//这里是全局引入ElementUI，先注掉，之后改成按需引入
// import ElementUI from 'element-ui'
//引入ElementUI的css样式
// import 'element-ui/lib/theme-chalk/index.css'
//引入api
import api from "./api";
//按需引入element ui
import {Button, Menu, Submenu, MenuItem, MenuItemGroup} from 'element-ui'

//挂载api
Vue.prototype.$api = api;

Vue.config.productionTip = false
//use ElementUI  （这里是全局引入ElementUI，先注掉，之后改成按需引入）
// Vue.use(ElementUI)

//按需引入
Vue.use(Button)
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItem)
Vue.use(MenuItemGroup)


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
